From b56fa6705f9ab755550965f042e1b371cc25f32b Mon Sep 17 00:00:00 2001 From: "cl349@arcadians.cl.cam.ac.uk" Date: Thu, 25 Nov 2004 21:21:09 +0000 Subject: [PATCH] bitkeeper revision 1.1159.1.459 (41a64cc5Qhyq2RPHgOzx-x0GJlCo-Q) sync w/ head. --- xen/arch/x86/memory.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xen/arch/x86/memory.c b/xen/arch/x86/memory.c index 70bcef8445..ce001f76c8 100644 --- a/xen/arch/x86/memory.c +++ b/xen/arch/x86/memory.c @@ -1328,7 +1328,7 @@ int do_mmu_update( count &= ~MMU_UPDATE_PREEMPT_FDOM_MASK; if ( unlikely(pdone != NULL) ) (void)get_user(done, pdone); - if ( (domid != current->id) && + if ( (domid != current->domain->id) && !do_extended_command(0, MMUEXT_SET_FOREIGNDOM | (domid << 16)) ) { rc = -EINVAL; @@ -1336,7 +1336,7 @@ int do_mmu_update( } } - if ( unlikely(!array_access_ok(VERIFY_READ, ureqs, count, sizeof(req))) ) { + if ( unlikely(!array_access_ok(VERIFY_READ, ureqs, count, sizeof(req))) ) { rc = -EFAULT; goto out; -- 2.30.2